<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
	<%@include file="/WEB-INF/views/include.jsp"%>
</head>
<body>
<article class="page-container">
	<form action="${base}/admin/login/save_password.do" method="post" class="form form-horizontal" id="form-edit_password">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>新密码：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="password" class="input-text"  placeholder="" id="password" name="password" datatype="*6-16" nullmsg="请输入新密码！" errormsg="密码范围在6~16位之间！">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>确认密码：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="password" class="input-text"  placeholder="" id="password2" name="password2" datatype="*" recheck="password" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！">
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</article>

<script type="text/javascript">
//修改密码
$("#form-edit_password").Validform({
	tiptype:1,
	postonce:true,
	ajaxPost:true,
	callback:function(data){
		if(data.status=="success"){
			setTimeout(function(){
				$.Hidemsg(); //公用方法关闭信息提示框;显示方法是$.Showmsg("message goes here.");
				parent.location.reload(); 
	        	layer_close();
			},1000);
		}else if(data.status=="failure"){
			$.Hidemsg();
			layer.msg(data.message);
		}
	}
});
</script>
</body>
</html>